import Vue from 'vue'
import type { TLFilterItemOfRegister } from '@ag/design'
import { AgFilters } from '@/constants'
import SowTypeSelect from '@/components/SowTypeSelect/index.vue'

/**
 * 组件库默认提供常用组件
 * Input 输入框
 * InputSearch 带 search 图标的输入框
 * DateRange 日期范围选择
 * DatePicker 日期选择
 * AsyncSelect 通用异步 Select
 * AsyncCasacader 通用异步级联
 * SyncSelect 通用同步 Select
 */
export const filters: TLFilterItemOfRegister[] = [
  {
    component: SowTypeSelect, // 栽培模式
    componentName: AgFilters.SowTypeSelect,
    componentProps: { clearable: true, filterable: true },
    changeTrigger: 'change'
  }
]
